package org.example.创建型模式.抽象工厂模式.重构代码.Redis双集群升级_抽象工厂.factory;

import java.util.concurrent.TimeUnit;

/**
 * @author : hmxchen
 * @program : modules-api
 * @description :
 * @create : 2022-04-14 09:49
 **/
public interface ICacheAdapter {
    String get(String key);

    void set(String key, String value);

    void set(String key, String value, long timeout, TimeUnit timeUnit);

    void del(String key);
}
